package org.example.bean;



/**
 * @Desc:
 * @Author: yanghongjun
 * @Date: 2024/5/16
 **/
public class Cord {
    private int x;
    private int y;

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public Cord(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public JsonGamePos toPos() {
        return new JsonGamePos(x, y);
    }
}
